<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
  <meta http-equiv="Content-Type" content=
  "text/html; charset=UTF-8">

  <title>RESOURCE_LIMITS</title>
  <link rel="stylesheet" type="text/css" href="QoS.css">
  <link rel="stylesheet" type="text/css" href="../../styles.css">
</head>

<body>

<H4 CLASS="Head3">
<A NAME="pgfId-189013"></A><A NAME="75712"></A>RESOURCE_LIMITS</H4>
<UL>
<LI CLASS="BodyNoLead">
<A NAME="pgfId-183620"></A>The <A NAME="marker-249662"></A>RESOURCE_LIMITS policy determines the amount of resources the service can consume in order to meet the requested QoS. This policy applies to the <A NAME="marker-183621"></A>topic, <A NAME="marker-183622"></A>data reader, and <A NAME="marker-183623"></A>data writer entities via the <EM CLASS="Code">
resource_limits</EM>
 member of their respective QoS structures. Below is the IDL related to the resource limits QoS policy.</LI>
</UL>
<P CLASS="Code">
<A NAME="pgfId-108688"></A>&nbsp;</P>
<P CLASS="Code">
<A NAME="pgfId-108735"></A>struct ResourceLimitsQosPolicy {</P>
<P CLASS="Code">
<A NAME="pgfId-108736"></A>  long max_samples;</P>
<P CLASS="Code">
<A NAME="pgfId-108737"></A>  long max_instances;</P>
<P CLASS="Code">
<A NAME="pgfId-108738"></A>  long max_samples_per_instance;</P>
<P CLASS="Code">
<A NAME="pgfId-108739"></A>};</P>
<P CLASS="Code">
<A NAME="pgfId-108740"></A>&nbsp;</P>
<UL>
<LI CLASS="Body">
<A NAME="pgfId-112920"></A>The <EM CLASS="Code">
max_samples</EM>
 member specifies the maximum number of <A NAME="marker-120677"></A>samples a single <A NAME="marker-119375"></A>data writer or <A NAME="marker-120109"></A>data reader can manage across all of its <A NAME="marker-120901"></A>instances. The <EM CLASS="Code">
max_instances</EM>
 member specifies the maximum number of instances that a data writer or data reader can manage. The <EM CLASS="Code">
max_samples_per_instance</EM>
 member specifies the maximum number of samples that can be managed for an individual instance in a single data writer or data reader. The values of all these members default to unlimited (<EM CLASS="Code">
DDS::LENGTH_UNLIMITED</EM>
).</LI>
<LI CLASS="Body">
<A NAME="pgfId-181243"></A>Resources are used by the data writer to queue samples written to the data writer but not yet sent to all data readers because of backpressure from the transport. Resources are used by the data reader to queue samples that have been received, but not yet read/taken from the data reader.</LI>
</UL>

</body>
</html>
